package ini_reader

// config : The struct of configuration
type config struct {
	Map               map[string]*section
	CurSec            *section
}

// section : The struct of configuration section
type section struct {
	Name         string
	Map          map[string]string
}

// Section : Get section by name
func (cfg config) Section(name string) *section {
	return cfg.Map[name]
}

// Key : Get value by key
func (sec section) Key(key string) string {
	return sec.Map[key]
}